home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 049a / sport14b.zip / POSTMAIL.BAT < prev    next >
DOS Batch File  |  1990-09-12  |  3KB  |  67 lines

  1. echo off
  2. cls
  3. echo                                    PostMail
  4. echo               (c)Copyright; 1988, 1989 Satore Center Software
  5. echo 
  6. echo  These routines are used to process incoming mail or to create and use
  7. echo  special processing which may be required after the receipt of incoming
  8. echo  SPORT mail.  This batch file must exist in the SPORT default directory.
  9. echo 
  10. rem *  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  11. rem *
  12. rem *  If you are NOT using the EXITAFTER option in your set-up,
  13. rem *  POSTMAIL.BAT is run, if present, after every outgoing and incoming
  14. rem *  mail session. The default installation USES the EXITAFTER option,
  15. rem *  in which case you may write in your postmail processing commands in the
  16. rem *  appropriate place in the RUNSPORT.BAT file
  17. rem *
  18. rem *  You may edit this file and delete the word "rem * " to put POSTMAIL.BAT
  19. rem *  into operation.
  20. rem *
  21. rem *  This batch file is used to process mail after it is received by
  22. rem *  SPORT.  It is only necessary if you have some special processing
  23. rem *  which needs to be done.  You can move certain files whenever they
  24. rem *  arrive in your incoming area and move them to certain directories
  25. rem *  and do processing which does not require human intervention,
  26. rem *  and for which there is enough memory.
  27. rem *
  28. rem *  Below is a sample of one type of Postmail Processing which will
  29. rem *  add an address line to your Phone Index List from via an incoming
  30. rem *  file.
  31. rem *
  32. rem *  This batch file assume you are using the standard SPORT directory
  33. rem *  configuration which is :
  34. rem *
  35. rem *     The SPORT default directory .................  SPORT
  36. rem *     The default inbound directory ...............  SPORT\INCOMING
  37. rem *
  38. rem *  If you are using different directory names you will need to replace them
  39. rem *  in the lines which follow.
  40. rem *
  41. rem *  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  42. rem *  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  43. rem *
  44. rem *  Be sure we are in the correct directory.
  45. rem *
  46. rem *  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  47. cd \sport
  48. rem *  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  49. rem *
  50. rem *  Check for an inbound text file to be appended to your IDX file.  If it
  51. rem *  exists with the proper name, append contents to the IDX file.
  52. rem *  The name of the inbound text file is the single security check on this
  53. rem *  procedure.  Therefore it should be known only to an authorized user.
  54. rem *  Please change this name to something only you know!
  55. rem *
  56. rem *  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  57. echo Checking for SFLASH.IDX update...
  58. if exist \sport\incoming changeit.txt goto CHANGEIDX
  59. goto FINIS
  60. :CHANGEIDX
  61. echo Updating SFLASH.IDX...
  62. type \sport\incoming changeit.txt >> \sport\sport.raw
  63. type \sport\incoming changeit.txt >> \sport\sflash.idx
  64. del  \sport\incoming changeit.txt
  65. :FINIS
  66. echo 
  67.